package cn.rmc.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //    当前页
    private Integer currentPage=1;
    //    每页数据条数
    private Integer pageSize = 5;
    //    关键字
    private String keyword;

    public Integer getStart(){
        return (currentPage-1)*pageSize;
    }

    public BaseQuery(Integer currentPage, Integer pageSize) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }

    public BaseQuery() {
    }
}
